package edu.xidian.bdilab.jrbigdata.controller.enterprise;

import edu.xidian.bdilab.jrbigdata.controller.response.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import  edu.xidian.bdilab.jrbigdata.service.enterprise.checkdemand.demandcheckservice;
@RestController
@Api(tags = {"demandCheck-企业查看企业需求功能"})
public class checkdemand {

    @Autowired
    public demandcheckservice demandcheckservice;

    @RequestMapping(value = "enterprise/checkdemand", method = RequestMethod.POST)
    public ResponseResult Demandcheck(@RequestParam String socialCode,
                                      @RequestParam(required=false) String loanLimit,
                                      @RequestParam(required=false) String rateLowerLimit,
                                      @RequestParam(required=false) String rateUpperLimit,
                                      @RequestParam(required=false) String loanPeriod,
                                      @RequestParam(required=false) String guaranteeMode)
    {
        ResponseResult responseResult= demandcheckservice.demandcheck(socialCode,
                                                                loanLimit,
                                                                rateLowerLimit,
                                                                rateUpperLimit,
                                                                loanPeriod,
                                                                guaranteeMode);
        return  responseResult;
    }
}



